// const { Sequelize } = require('sequelize');

// const sequelize = new Sequelize('myschooldb', 'root', '12345678', {
//   host: 'localhost',
//   dialect: 'mysql', // 数据库类型
//   logging: null, //不在记录日志
// });

// module.exports = sequelize;

const { Sequelize } = require('sequelize');

const sequelize = new Sequelize('myschooldb', 'root', '12345678', {
  host: 'localhost',
  dialect: 'mysql', // 数据库类型
  logging: null,
});

module.exports = sequelize;
